import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import index from '../pages/index'
import homepage from '../pages/homepage'
import login from '../pages/login'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      redirect: 'homepage',
      children: [
        {
          path: 'homepage',
          component: homepage
        }
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: login
    }
  ]
})
